{extend name="_public/main" /}
{block name="seo"}
<title>{$category.title} 分类下的文章{neq name="page->getCurrentPage()" value="1"} - 第{$page->getCurrentPage()}页{/neq} -{:get_site_config('site_name')}</title>
{/block}

{block name="main-area"}
<div class="list-title">
    {$category.title} 分类下的文章
</div>
{volist name="list" id="vo"}
<article class="post border-bottom border-info">
    <h2 class="post-title">
        <a href="{:url('blog/article/index',['id'=>$vo.id])}">{$vo.title}</a>
    </h2>

    {volist name="vo.tags" id="tag"}
    <a href="{:url('blog/tags/index',['id'=>$tag.id])}" class="badge badge-info">{$tag.tag}</a>
    {/volist}
    {notempty name="vo.thumb"}
    <div class="article-thumb"><img src="{$vo.thumb}" alt="{$vo.title}" style="max-height: "/></div>
    {/notempty}
    <div class="post-article">
        {$vo.content|raw|mb_substr=0,120}…
    </div>
    <div>
        <span>{$vo.create_time|date='Y-m-d H:i'}</span>
        <span>热度 {$vo.click} ℃</span>
        <span><a href="{:url('blog/article/index',['id'=>$vo.id])}">全文链接</a></span>
    </div>
</article>
{/volist}

{$page->render()|raw}

{/block}
